package com.nbsaas.boot.project.rest.convert;

import com.nbsaas.boot.project.data.entity.Project;
import com.nbsaas.boot.project.api.domain.response.ProjectResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 实体对象转化成响应对象
*/

public class ProjectResponseConvert  implements Converter<ProjectResponse,Project> {

    @Override
    public ProjectResponse convert(Project source) {
        ProjectResponse  result = new  ProjectResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

